import request from '/@/utils/request';
enum Api {
	PageCms_Template = '/api/cms_Template/Page',
	AddCms_Template = '/api/cms_Template/addCms_Template',
	EditCms_Template = '/api/cms_Template/updateCms_Template',
	DelCms_Template = '/api/cms_Template/delete',
	GetCms_Template = '/api/cms_Template/SelectAll',
}
/**获取分页 */
export const pageCms_Template = (params?: any) =>
	request({
		url: Api.PageCms_Template,
		method: 'post',
		data: params,
	});
/**查询 */
export const getTemplateAll = (params?: any) =>
	request({
		url: Api.GetCms_Template,
		method: 'get',
		params,
	});
// 增加
export const addCms_Template = (params?: any) =>
	request({
		url: Api.AddCms_Template,
		method: 'post',
		data: params,
	});

/**保存 */
export const editCms_Template = (params?: any) =>
	request({
		url: Api.EditCms_Template,
		method: 'post',
		data: params,
	});
/**删除 */
export const deleteCms_Template = (params?: any) =>
	request({
		url: Api.DelCms_Template,
		method: 'post',
		data: params,
	});
